byteToNum
Type
function
Summary
Returns the numeric value of a byte.
Syntax
the byteToNum of <byte>
byteToNum(<byte>)
Description
Converts a single byte to a numeric value in the range 0-255
The byteToNum function is the inverse of the numToByte function.
Parameters
Name | Type | Description |
---|---|---|
byte | Any expression that evaluates to a byte. If you specify a string containing more than one byte, all bytes but the first are ignored. |
Examples
byteToNum(byte 1 of tString)
if byteToNum(nextByte) = 0 then next repeat
numToByte(byteToNum("Z")) -- returns Z
Related
control structure: function
function: md5Digest, charToNum, numToByte, numToChar
keyword: integer
Compatibility and Support
Introduced
LiveCode 4.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile